package com.ftf.tp.blog.infrastructure.converter;

import com.ftf.tp.blog.domain.configuration.dos.ColumnDO;
import com.ftf.tp.blog.infrastructure.mapper.pos.ColumnPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author tanghao
 * @date 2022/7/28
 */
@Mapper
public interface ColumnConverter {

    ColumnConverter INSTANCE = Mappers.getMapper(ColumnConverter.class);

    ColumnPO doToPo(ColumnDO columnDO);

    List<ColumnPO> doToPoList(List<ColumnDO> columnDO);

    List<ColumnDO> poToDoList(List<ColumnPO> columnDO);
}
